﻿CREATE TABLE [dbo].[AW_Reminder] (
    [ReminderId]   UNIQUEIDENTIFIER NULL,
    [PropertyId]   UNIQUEIDENTIFIER NULL,
    [RenId]        UNIQUEIDENTIFIER NULL,
    [AffectedId]   UNIQUEIDENTIFIER NULL,
    [ReminderType] TINYINT          NULL,
    [StatusDelete] TINYINT          NULL,
    [CreateDate]   DATETIME         NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'TransactionId if Type=1; RenReport''s ContactId if Type=2', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AW_Reminder', @level2type = N'COLUMN', @level2name = N'AffectedId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1-Rent Transaction; 2-Ren Report', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'AW_Reminder', @level2type = N'COLUMN', @level2name = N'ReminderType';

